﻿@using System.Text
@using OA.Model
@using OA.AspNetCore.Html
@using OA.Core.Model
@using OA.Core.Helper
@model OA.Model.KnowledgeGroup
@{

    Layout = null;
    string msg = ViewBag.Msg;
    string tips = string.Empty;
    if (!string.IsNullOrWhiteSpace(msg))
    {
        tips = $"layer.msg('{msg}');";
    }
}
@using (Html.BeginForm(FormMethod.Post, htmlAttributes: new { @class = "layui-form", id = "myForm" }))
{
    @Html.AntiForgeryToken()

    <div class="layui-form-item">
        @Html.LabelFor(model => model.Name, new { @class = "layui-form-label" })
        <div class="layui-input-block">
            @Html.HiddenFor(model => model.ID)
            @Html.MyEditorFor(model => model.Name)
        </div>
    </div>

    <div class="layui-form-item">
        @Html.LabelFor(model => model.Sort, new { @class = "layui-form-label" })
        <div class="layui-input-block">
            @Html.MyEditorFor(model => model.Sort)
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <input type="submit" value="提 交" lay-submit="" lay-filter="OAForm" class="layui-btn mySubmit" />
        </div>
    </div>
}
